<?php 
if($adc->getCurrentAdTypeId() > 0)
{
	switch($adc->CurrentAdType->AdTypeObject)
	{
		case 'AdVehicle':
			?>
            
            <div class="control-group">
				<label for="wmin"><?php echo ucfirst($txt->getWord('weight')); ?> (kg)</label>
				<?php if($adc->getCurrentAdCatId() == 11): ?><br />
				<a href="#" onclick="setWeightInterval(0, 7000);">00t - 07t</a><br />
				<a href="#" onclick="setWeightInterval(7000, 14000);">07t - 14t</a><br />
				<a href="#" onclick="setWeightInterval(14000, 25000);">14t - 25t</a><br />
				<a href="#" onclick="setWeightInterval(25000, 50000);">25t - 50t</a><br />
				<a href="#" onclick="setWeightInterval(50000, 99000);">50t - 99t</a><br />
				<?php endif; ?>
				<?php if($adc->getCurrentAdCatId() == 13): ?><br />
				<a href="#" onclick="setWeightInterval(0, 10000);">00t - 10t</a><br />
				<a href="#" onclick="setWeightInterval(10000, 22000);">10t - 22t</a><br />
				<a href="#" onclick="setWeightInterval(22000, 99000);">50t - 99t</a><br />
				<?php endif; ?>
                <?php if($theme->getBootstrap() > 2): ?>
                <div class="controls row">
                    <div class="col-md-4 col-sm-4 col-xs-4">
                        <input placeholder="1000" class="input-mini numeric form-control" type="number" id="wmin" name="wmin" onclick="this.value='';" value="<?php if(intval($_REQUEST['wmin']) > 0) { echo intval($_REQUEST['wmin']); } ?>" />
                    </div>
                    <div class="col-md-1 col-sm-1 col-xs-1">
                        <p class="form-control-static">-</p>
                    </div>
                    <div class="col-md-4 col-sm-4 col-xs-4">
                        <input placeholder="10000" class="input-mini numeric form-control" type="number" id="wmax" name="wmax" onclick="this.value='';" value="<?php if(intval($_REQUEST['wmax']) > 0) { echo intval($_REQUEST['wmax']); } ?>" />
                    </div>
                    <div class="col-md-3 col-sm-3 col-xs-3">
                        <button type="submit" class="btn <?php echo $adc->getSetting('SearchBtnClass'); ?>" name="search"><?php echo ucfirst($txt->getWord('search')); ?></button>
                    </div>
                </div>
                <?php else: ?>
                <div class="controls">
					<input placeholder="1000" class="input-mini numeric" type="text" id="wmin" name="wmin" onclick="this.value='';" value="<?php if(intval($_REQUEST['wmin']) > 0) { echo intval($_REQUEST['wmin']); } ?>" />
					<span>&nbsp;-&nbsp;</span>
					<input placeholder="10000" class="input-mini numeric" type="text" id="wmax" name="wmax" onclick="this.value='';" value="<?php if(intval($_REQUEST['wmax']) > 0) { echo intval($_REQUEST['wmax']); } ?>" />
					<button type="submit" class="btn <?php echo $adc->getSetting('SearchBtnClass'); ?>" name="search"><?php echo ucfirst($txt->getWord('search')); ?></button>
				</div>
                <?php endif; ?>
			</div>
			<?php 
		break;
	}
} 
?>